<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Report Top 10 Contest Page</title>
    </head>
    <body style="azimuth: center">
        <c:set var="result"  value="${requestScope.Result}" />
        <c:set var="display" value="${requestScope.Contest}"/>


        <table border="0" >
            <tbody>
                <tr>
                    <td><img src="Admin/Images/images.jpg"/></td>
                    <td colspan="2" ><h1>   Name Contest:        ${display.nameContest}</h1></td>
                </tr>
                <tr>
                    <td ></td>
                    <td colspan="2">From Date:      ${display.fromDate}         To Date:        ${display.toDate} </td>
                </tr>
            </tbody>
        </table>

        <table border="0" >
            <thead>
                <tr bgcolor="Gray">
                    <th>ID Image</th>
                    <th>Image</th>
                    <th>Username</th>
                    <th>Full name</th>
                    <th>From Date</th>
                    <th>To Date</th>
                    <th>Total vote mark</th>
                </tr>
            </thead>
            <tbody>

                <c:forEach var="show" items="${result}">
                <div align="center">
                    <tr align="center">
                        <td align="center">${show.idmgcontest.idImgContest}</td>
                        <td><img src="Images/${show.idmgcontest.image}" height="150" width="200"/> </td>
                        <td>${show.idmgcontest.joinContest.registeredUser.username}</td>
                        <td>${show.idmgcontest.joinContest.registeredUser.firstName} ${show.idmgcontest.joinContest.registeredUser.lastName}</td>
                        <td>${show.fromDate}</td>
                        <td>${show.toDate}</td>
                        <td align="right">${show.totalmark}</td>
                    </tr></div>
                </c:forEach>
        </tbody>
    </table>
</body>
</html>
